package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Perfcrits;
import com.wyzz.hr.pojo.Perfcrittype;

public class BasePerfcrits implements Serializable {

	public BasePerfcrits() {
		hashCode = 0x80000000;
		initialize();
	}

	public BasePerfcrits(String pcId) {
		hashCode = 0x80000000;
		setPcId(pcId);
		initialize();
	}

	public BasePerfcrits(String pcId, String pcName, Perfcrittype pcPctId,
			Integer pcStatus, Integer pcSortId) {
		hashCode = 0x80000000;
		this.pcId = pcId;
		this.pcName = pcName;
		this.pcPctId = pcPctId;
		this.pcStatus = pcStatus;
		this.pcSortId = pcSortId;
		initialize();
	}

	protected void initialize() {
	}

	public String getPcId() {
		return pcId;
	}

	public void setPcId(String pcId) {
		this.pcId = pcId;
	}

	public String getPcName() {
		return pcName;
	}

	public void setPcName(String pcName) {
		this.pcName = pcName;
	}

	public String getPcDesc() {
		return pcDesc;
	}

	public void setPcDesc(String pcDesc) {
		this.pcDesc = pcDesc;
	}

	public Perfcrittype getPcPctId() {
		return pcPctId;
	}

	public void setPcPctId(Perfcrittype pcPctId) {
		this.pcPctId = pcPctId;
	}

	public Integer getPcStatus() {
		return pcStatus;
	}

	public void setPcStatus(Integer pcStatus) {
		this.pcStatus = pcStatus;
	}

	public Integer getPcSortId() {
		return pcSortId;
	}

	public void setPcSortId(Integer pcSortId) {
		this.pcSortId = pcSortId;
	}

	public boolean equals(Object obj) {
		if (!(obj instanceof Perfcrits))
			return false;
		Perfcrits perf = (Perfcrits) obj;
		return getPcId().equals(perf.getPcId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getPcId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getPcId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	private static final long serialVersionUID = 1L;
	public static String REF = "Perfcrits";
	public static String PROP_PC_ID = "pcId";
	public static String PROP_PC_NAME = "pcName";
	public static String PROP_PC_DESC = "pcDesc";
	public static String PROP_PC_PCT_ID = "pcPctId";
	public static String PROP_PC_STATUS = "pcStatus";
	public static String PROP_PC_SORT_ID = "pcSortId";
	private int hashCode;
	private String pcId;
	private String pcName;
	private String pcDesc;
	private Perfcrittype pcPctId;
	private Integer pcStatus;
	private Integer pcSortId;

}
